/**
    \file appl_config_client.h

    \brief This file defines the Mesh Configuration Model Application Interface
    - includes Data Structures and Methods for both Server and Client.
*/

#ifndef _H_CHIPSEAMODEL_COMMON_
#define _H_CHIPSEAMODEL_COMMON_


/* --------------------------------------------- Header File Inclusion */
#include "MS_common.h"



//chipsea model att
#define MS_STATE_CHIPSEAMODEL_HSL_T                                     0x0123
#define MS_STATE_CHIPSEAMODEL_ONOFF_T                                   0x0100
#define MS_STATE_CHIPSEAMODEL_LIGHTNESS_T                               0x0121
#define MS_STATE_CHIPSEAMODEL_CTL_T                                     0x0122
#define MS_STATE_CHIPSEAMODEL_MAINLIGHTONOFF_T                          0x0534
#define MS_STATE_CHIPSEAMODEL_BACKLIGHTONOFF_T                          0x0533
#define MS_STATE_CHIPSEAMODEL_HB_CALLBACK_T                             0x0801
#define MS_STATE_CHIPSEAMODEL_RESET_T                                   0x0802
#define MS_STATE_CHIPSEAMODEL_MODENUMBER_T                              0xF004
#define MS_STATE_CHIPSEAMODEL_EVENT_INDICATE_T                          0xF009
#define MS_STATE_CHIPSEAMODEL_NOTIFY_T                                  0xFFFE




//chipsea model opcode
#define MS_ACCESS_CHIPSEAMODEL_GET_OPCODE                               0x00D0A706
#define MS_ACCESS_CHIPSEAMODEL_SET_OPCODE                               0x00D1A706
#define MS_ACCESS_CHIPSEAMODEL_SET_UNACKNOWLEDGED_OPCODE                0x00D2A706
#define MS_ACCESS_CHIPSEAMODEL_STATUS_OPCODE                            0x00D3A706
#define MS_ACCESS_CHIPSEAMODEL_INDICATION_OPCODE                        0x00D4A706
#define MS_ACCESS_CHIPSEAMODEL_CONFIRMATION_OPCODE                      0x00D5A706
#define MS_ACCESS_CHIPSEAMODEL_WRITECMD_OPCODE                          0x00E0A706
#define MS_ACCESS_CHIPSEAMODEL_NOTIFY_OPCODE                            0x00E1A706
#define MS_ACCESS_CHIPSEAMODEL_UNKNOWN_OPCODE							0x00FFA706

#define MS_ACCESS_CHIPSEAMODEL_RESET_OPCODE                            	0x00E2A706
#define MS_ACCESS_CHIPSEAMODEL_USERAPP_OPCODE                           0x00E3A706
#define MS_ACCESS_CHIPSEAMODEL_UNKNOWN_OPCODE							0x00FFA706

#define MS_MODEL_ID_CHIPSEAMODEL_SERVER                                 0x000006A7
#define MS_MODEL_ID_CHIPSEAMODEL_CLIENT                                 0x000106A7





/* --------------------------------------------- Global Definitions */


/* --------------------------------------------- Data Types/ Structures */
typedef struct _MS_access_chipseamodel_state_params
{
    /** State Type */
    UINT16 chipseamode_type;

    /** State pointer */
    UCHAR* chipseamode_param;

} MS_ACCESS_CHIPSEAMODEL_STATE_PARAMS;





/* --------------------------------------------- Function */

#endif /*_H_APPL_CONFIG_CLIENT_ */
